home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_groff.idb / usr / freeware / catman / u_man / cat1 / grops.Z / grops
Text File  |  2002-04-08  |  21KB  |  442 lines

  1. GROPS(1)                         GROPS(1)
  2.  
  3.  
  4.  
  5. NNAAMMEE
  6.        grops - PostScript driver for groff
  7.  
  8. SSYYNNOOPPSSIISS
  9.        ggrrooppss [ --ggllmmvv ] [ --bb_n ] [ --cc_n ] [ --ww_n ] [ --FF_d_i_r ] [ --PP_p_r_o_
  10.          _l_o_g_u_e ] [ _f_i_l_e_s_._._.    ]
  11.  
  12.        It is possible to have whitespace between a  command  line
  13.        option and its parameter.
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.        ggrrooppss  translates  the  output of GNU ttrrooffff to PostScript.
  17.        Normally    ggrrooppss should be    invoked    by using the  groff  com
  18.        mand  with  a --TTppss option.  (Actually, this is the default
  19.        for groff.)  If no files    are given, ggrrooppss  will    read  the
  20.        standard     input.     A filename of -- will also cause ggrrooppss to
  21.        read the    standard input.     PostScript output is written  to
  22.        the  standard  output.  When ggrrooppss is run by ggrrooffff options
  23.        can be passed to    ggrrooppss using the    ggrrooffff --PP option.
  24.  
  25. OOPPTTIIOONNSS
  26.        --bb_n    Workaround broken    spoolers  and  previewers.   Nor
  27.           mally ggrrooppss produces output that conforms    the Docu
  28.           ment Structuring Conventions version 3.0.     Unfortu
  29.           nately  some  spoolers  and previewers can't handle
  30.           such output.  The    value of _n  controls  what  ggrrooppss
  31.           does  to its output acceptable to    such programs.    A
  32.           value of 0 will  cause  grops  not  to  employ  any
  33.           workarounds.   Add 1 if no %%%%BBeeggiinnDDooccuummeennttSSeettuupp and
  34.           %%%%EEnnddDDooccuummeennttSSeettuupp comments  should  be  generated;
  35.           this  is    needed    for  early versions of TranScript
  36.           that get confused    by anything between the    %%%%EEnnddPPrroo
  37.           lloogg comment and the first    %%%%PPaaggee comment.     Add 2 if
  38.           lines in included    files beginning    with  %%!!   should
  39.           be  stripped out;    this is    needed for Sun's pageview
  40.           previewer.  Add 4    if %%%%PPaaggee, %%%%TTrraaiilleerr  and  %%%%EEnndd
  41.           PPrroolloogg  comments should be stripped out of included
  42.           files; this  is  needed  for  spoolers  that  don't
  43.           understand  the  %%%%BBeeggiinnDDooccuummeenntt    and %%%%EEnnddDDooccuummeenntt
  44.           comments.      Add  8  if  the  first  line     of   the
  45.           PostScript  output  should be %%!!PPSS--AAddoobbee--22..00 rather
  46.           than %%!!PPSS--AAddoobbee--33..00;  this  is  needed  when  using
  47.           Sun's  Newsprint    with a printer that requires page
  48.           reversal.     The default value can be specified by a
  49.  
  50.              bbrrookkeenn _n
  51.  
  52.           command in the DESC file.      Otherwise  the  default
  53.           value is 0.
  54.  
  55.        --cc_n    Print _n copies of    each page.
  56.  
  57.        --gg     Guess  the  page length.    This generates PostScript
  58.           code that    guesses    the page length.  The guess  will
  59.           be correct only if the imageable area is vertically
  60.           centered on the page.  This option  allows  you  to
  61.           generate documents that can be printed both on let
  62.           ter (8.511) paper    and on A4 paper    without     change.
  63.  
  64.        --ll     Print the    document in landscape format.
  65.  
  66.        --mm     Turn manual feed on for the document.
  67.  
  68.        --FF_d_i_r  Prepend  directory  _d_i_r//ddeevv_n_a_m_e  to the search path
  69.           for prologue, font, and device  description  files;
  70.           _n_a_m_e is the name of the device, usually ppss.
  71.  
  72.        --PP_p_r_o_l_o_g_u_e_-_f_i_l_e
  73.           Use  the    file  _p_r_o_l_o_g_u_e_-_f_i_l_e (in    the font path) as
  74.           the prologue instead of the default  prologue  file
  75.           pprroolloogguuee.      This    option    overrides the environment
  76.           variable GROPS_PROLOGUE.
  77.  
  78.        --ww_n    Lines should be drawn using a thickness of _n  thou
  79.           sandths of an em.
  80.  
  81.        --vv     Print the    version    number.
  82.  
  83. UUSSAAGGEE
  84.        There  are  styles  called RR, II,    BB, and BBII mounted at font
  85.        positions 1 to 4.  The fonts are    grouped    into families  AA,
  86.        BBMM,  CC,    HH, HHNN, NN, PP and    TT having members in each of these
  87.        styles:
  88.  
  89.        AARR     AvantGarde-Book
  90.  
  91.        AAII     AvantGarde-BookOblique
  92.  
  93.        AABB     AvantGarde-Demi
  94.  
  95.        AABBII    AvantGarde-DemiOblique
  96.  
  97.        BBMMRR    Bookman-Light
  98.  
  99.        BBMMII    Bookman-LightItalic
  100.  
  101.        BBMMBB    Bookman-Demi
  102.  
  103.        BBMMBBII   Bookman-DemiItalic
  104.  
  105.        CCRR     Courier
  106.  
  107.        CCII     Courier-Oblique
  108.  
  109.        CCBB     Courier-Bold
  110.  
  111.        CCBBII    Courier-BoldOblique
  112.  
  113.        HHRR     Helvetica
  114.  
  115.        HHII     Helvetica-Oblique
  116.  
  117.        HHBB     Helvetica-Bold
  118.  
  119.        HHBBII    Helvetica-BoldOblique
  120.  
  121.        HHNNRR    Helvetica-Narrow
  122.  
  123.        HHNNII    Helvetica-Narrow-Oblique
  124.  
  125.        HHNNBB    Helvetica-Narrow-Bold
  126.  
  127.        HHNNBBII   Helvetica-Narrow-BoldOblique
  128.  
  129.        NNRR     NewCenturySchlbk-Roman
  130.  
  131.        NNII     NewCenturySchlbk-Italic
  132.  
  133.        NNBB     NewCenturySchlbk-Bold
  134.  
  135.        NNBBII    NewCenturySchlbk-BoldItalic
  136.  
  137.        PPRR     Palatino-Roman
  138.  
  139.        PPII     Palatino-Italic
  140.  
  141.        PPBB     Palatino-Bold
  142.  
  143.        PPBBII    Palatino-BoldItalic
  144.  
  145.        TTRR     Times-Roman
  146.  
  147.        TTII     Times-Italic
  148.  
  149.        TTBB     Times-Bold
  150.  
  151.        TTBBII    Times-BoldItalic
  152.  
  153.        There is    also the following font    which is not a member  of
  154.        a family:
  155.  
  156.        ZZCCMMII   ZapfChancery-MediumItalic
  157.  
  158.        There  are  also    some special fonts called SSSS and SS.  Zapf
  159.        Dingbats    is available as    ZZDD  and     a  reversed  version  of
  160.        ZapfDingbats (with symbols pointing in the opposite direc
  161.        tion) is    available as ZZDDRR; most characters in these  fonts
  162.        are unnamed and must be accessed    using \\NN.
  163.  
  164.        ggrrooppss understands various X commands produced using the \\XX
  165.        escape sequence;    ggrrooppss will only    interpret  commands  that
  166.        begin with a ppss::    tag.
  167.  
  168.        \\XX''ppss:: eexxeecc _c_o_d_e''
  169.           This  executes the arbitrary PostScript commands in
  170.           _c_o_d_e.  The PostScript currentpoint will be  set  to
  171.           the  position  of     the  \\XX command before    executing
  172.           _c_o_d_e.  The origin    will be    at the top left    corner of
  173.           the  page, and y coordinates will    increase down the
  174.           page.  A procedure uu will    be defined that     converts
  175.           groff  units  to    the  coordinate    system in effect.
  176.           For example,
  177.  
  178.              ..nnrr xx 11ii
  179.              \\XX''ppss:: eexxeecc \\nnxx uu 00 rrlliinneettoo ssttrrookkee''
  180.  
  181.           will draw    a horizontal line one  inch  long.   _c_o_d_e
  182.           may  make     changes  to  the graphics state, but any
  183.           changes will persist only    to the end of  the  page.
  184.           A     dictionary  containing    the definitions    specified
  185.           by the ddeeff and mmddeeff will be on top of  the  dictio
  186.           nary  stack.  If your code adds definitions to this
  187.           dictionary, you  should  allocate     space    for  them
  188.           using  \\XX''ppss mmddeeff    _n''.  Any definitions will persist
  189.           only until the end of the    page.  If you use the  \\YY
  190.           escape  sequence    with  an  argument  that  names    a
  191.           macro, _c_o_d_e can extend over  multiple  lines.   For
  192.           example,
  193.  
  194.              ..nnrr xx 11ii
  195.              ..ddee yy
  196.              ppss:: eexxeecc
  197.              \\nnxx uu 00 rrlliinneettoo
  198.              ssttrrookkee
  199.              ....
  200.              \\YYyy
  201.  
  202.           is  another  way to draw a horizontal line one inch
  203.           long.
  204.  
  205.        \\XX''ppss:: ffiillee _n_a_m_e''
  206.           This is the same as the eexxeecc  command  except  that
  207.           the PostScript code is read from file _n_a_m_e.
  208.  
  209.        \\XX''ppss:: ddeeff _c_o_d_e''
  210.           Place  a PostScript definition contained in _c_o_d_e in
  211.           the prologue.  There should be at    most one  defini
  212.           tion per \\XX command.  Long definitions can be split
  213.           over several \\XX commands;    all  the  _c_o_d_e    arguments
  214.           are  simply  joined together separated by    newlines.
  215.           The definitions are placed in a dictionary which is
  216.           automatically  pushed  on    the dictionary stack when
  217.           an eexxeecc command is executed.  If    you  use  the  \\YY
  218.           escape  sequence    with  an  argument  that  names    a
  219.           macro, _c_o_d_e can extend over multiple lines.
  220.  
  221.        \\XX''ppss:: mmddeeff _n _c_o_d_e''
  222.           Like ddeeff,    except that _c_o_d_e may contain up    to _n def
  223.           initions.     ggrrooppss needs to    know how many definitions
  224.           _c_o_d_e contains so that it can  create  an    appropri
  225.           ately  sized PostScript dictionary to contain them.
  226.  
  227.        \\XX''ppss:: iimmppoorrtt _f_i_l_e _l_l_x _l_l_y _u_r_x _u_r_y _w_i_d_t_h    [ _h_e_i_g_h_t ]''
  228.           Import a PostScript graphic from _f_i_l_e.   The  argu
  229.           ments  _l_l_x, _l_l_y, _u_r_x, and    _u_r_y give the bounding box
  230.           of the graphic in    the default PostScript coordinate
  231.           system;  they  should  all be integers; _l_l_x and _l_l_y
  232.           are the x    and y coordinates of the lower left  cor
  233.           ner  of  the  graphic;  _u_r_x and _u_r_y are the x and    y
  234.           coordinates  of  the  upper  right  corner  of  the
  235.           graphic;    _w_i_d_t_h  and  _h_e_i_g_h_t are integers    that give
  236.           the desired width    and height in groff units of  the
  237.           graphic.    The graphic will be scaled so that it has
  238.           this width and height and    translated  so    that  the
  239.           lower  left corner of the    graphic    is located at the
  240.           position associated with \\XX command.  If the height
  241.           argument    is omitted it will be scaled uniformly in
  242.           the x and    y directions so    that it    has the    specified
  243.           width.   Note  that  the contents    of the \\XX command
  244.           are not interpreted by ttrrooffff; so vertical    space for
  245.           the  graphic  is    not  automatically added, and the
  246.           _w_i_d_t_h and    _h_e_i_g_h_t arguments are not allowed to  have
  247.           attached    scaling     indicators.   If  the PostScript
  248.           file complies with the Adobe  Document  Structuring
  249.           Conventions  and    contains a %%%%BBoouunnddiinnggBBooxx comment,
  250.           then  the     bounding  box     can   be   automatically
  251.           extracted     from  within  groff  by  using     the ppssbbbb
  252.           request.
  253.  
  254.           The --mmppss macros  (which  are  automatically  loaded
  255.           when  ggrrooppss  is run by the groff command)    include    a
  256.           PPSSPPIICC macro which    allows a  picture  to  be  easily
  257.           imported.     This has the format
  258.  
  259.              ..PPSSPPIICC  [    --LL  | --RR | --II _n    ]  _f_i_l_e    [ _w_i_d_t_h    [
  260.              _h_e_i_g_h_t ]]
  261.  
  262.           _f_i_l_e is the name of the file containing the  illus
  263.           tration;    _w_i_d_t_h  and  _h_e_i_g_h_t give    the desired width
  264.           and height of the    graphic.  The  _w_i_d_t_h  and  _h_e_i_g_h_t
  265.           arguments    may have scaling indicators attached; the
  266.           default scaling indicator    is ii.    This  macro  will
  267.           scale  the  graphic uniformly in the x and y direc
  268.           tions so that it is no more  than     _w_i_d_t_h    wide  and
  269.           _h_e_i_g_h_t high.  By default,    the graphic will be hori
  270.           zontally centered.  The --LL and --RR    cause the graphic
  271.           to  be left-aligned and right-aligned respectively.
  272.           The --II option causes the graphic to be indented  by
  273.           _n.
  274.  
  275.        \\XX''ppss:: iinnvviiss''
  276.        \\XX''ppss:: eennddiinnvviiss''
  277.           No  output  will    be generated for text and drawing
  278.           commands that are    bracketed with these \\XX    commands.
  279.           These  commands  are  intended  for use when output
  280.           from ttrrooffff will be previewed before being    processed
  281.           with  ggrrooppss;  if the previewer is    unable to display
  282.           certain characters or other constructs, then  other
  283.           substitute characters or constructs can be used for
  284.           previewing by bracketing them with  these     \\XX  com
  285.           mands.
  286.  
  287.           For  example,  ggxxddiittvviieeww    is  not    able to    display    a
  288.           proper \\((eemm  character  because  the  standard  X11
  289.           fonts  do    not provide it;    this problem can be over
  290.           come by executing    the following request
  291.  
  292.              ..cchhaarr \\((eemm    \\XX''ppss:: iinnvviiss''\\
  293.              \\ZZ''\\vv''--..2255mm''\\hh''..0055mm''\\DD''ll ..99mm 00''\\hh''..0055mm''''\\
  294.              \\XX''ppss:: eennddiinnvviiss''\\((eemm
  295.  
  296.           In this case, ggxxddiittvviieeww will be unable  to  display
  297.           the  \\((eemm    character and will draw    the line, whereas
  298.           ggrrooppss will print the \\((eemm    character and ignore  the
  299.           line.
  300.  
  301.        The  input  to  ggrrooppss  must  be    in  the     format    output by
  302.        ttrrooffff(1).  This is described in ggrrooffff__oouutt(5).  In addition
  303.        the  device and font description    files for the device used
  304.        must meet  certain  requirements.   The    device    and  font
  305.        description  files  supplied  for ppss device meet    all these
  306.        requirements.  aaffmmttooddiitt(1) can  be  used     to  create  font
  307.        files  from  AFM    files.    The resolution must be an integer
  308.        multiple    of 72 times the    ssiizzeessccaallee.  The    ppss device uses    a
  309.        resolution  of  72000 and a sizescale of    1000.  The device
  310.        description file    should contain a command
  311.  
  312.           ppaappeerrlleennggtthh _n
  313.  
  314.        which says that output should be    generated which    is  suit
  315.        able  for  printing  on    a  page    whose length is    _n machine
  316.        units.  Each font description file must contain a command
  317.  
  318.           iinntteerrnnaallnnaammee _p_s_n_a_m_e
  319.  
  320.        which says that the PostScript name of the font is _p_s_n_a_m_e.
  321.        It may also contain a command
  322.  
  323.           eennccooddiinngg _e_n_c___f_i_l_e
  324.  
  325.        which  says  that  the PostScript font should be    reencoded
  326.        using the encoding described in _e_n_c___f_i_l_e; this file should
  327.        consist of a sequence of    lines of the form:
  328.  
  329.           _p_s_c_h_a_r _c_o_d_e
  330.  
  331.        where  _p_s_c_h_a_r is    the PostScript name of the character, and
  332.        _c_o_d_e is its position in the encoding expressed as a  deci
  333.        mal  integer.   The  code  for each character given in the
  334.        font file must correspond to the    code for the character in
  335.        encoding     file, or to the code in the default encoding for
  336.        the font    if the PostScript font is not  to  be  reencoded.
  337.        This code can be    used with the \\NN escape    sequence in ttrrooffff
  338.        to select the character,    even if    the  character    does  not
  339.        have  a groff name.  Every character in the font    file must
  340.        exist in    the PostScript font, and the widths given in  the
  341.        font  file  must     match    the widths used    in the PostScript
  342.        font.  ggrrooppss will assume    that a    character  with     a  groff
  343.        name  of     ssppaaccee    is blank (makes    no marks on the    page); it
  344.        can make    use of such a character    to  generate  more  effi
  345.        cient and compact PostScript output.
  346.  
  347.        ggrrooppss  can  automatically  include  the downloadable fonts
  348.        necessary to print the document.     Any  downloadable  fonts
  349.        which  should, when required, be    included by ggrrooppss must be
  350.        listed         in           the      file           //uussrr//ffrreeee
  351.        wwaarree//sshhaarree//ggrrooffff//11..1177..22//ffoonntt//ddeevvppss//ddoowwnnllooaadd;  this  should
  352.        consist of lines    of the form
  353.  
  354.           _f_o_n_t  _f_i_l_e_n_a_m_e
  355.  
  356.        where _f_o_n_t is the PostScript name of the    font,  and  _f_i_l_e_
  357.        _n_a_m_e  is     the  name of the file containing the font; lines
  358.        beginning with ##    and blank lines    are ignored;  fields  may
  359.        be  separated by    tabs or    spaces;    _f_i_l_e_n_a_m_e will be searched
  360.        for using the same mechanism that is used for  groff  font
  361.        metric  files.    The  ddoowwnnllooaadd  file  itself  will also be
  362.        searched    for using this mechanism.
  363.  
  364.        If the file containing a     downloadable  font  or     imported
  365.        document     conforms  to the Adobe    Document Structuring Con
  366.        ventions, then ggrrooppss will interpret any    comments  in  the
  367.        files  sufficiently  to ensure that its own output is con
  368.        forming.     It will also supply any  needed  font    resources
  369.        that are    listed in the ddoowwnnllooaadd file as well as any needed
  370.        file resources.    It is also able    to handle  inter-resource
  371.        dependencies.   For example, suppose that you have a down
  372.        loadable    font called Garamond,  and  also  a  downloadable
  373.        font  called  Garamond-Outline  which  depends on Garamond
  374.        (typically it would be defined  to  copy     Garamond's  font
  375.        dictionary,  and     change    the PaintType),    then it    is neces
  376.        sary for    Garamond to be appear before Garamond-Outline  in
  377.        the PostScript document.     ggrrooppss will handle this    automati
  378.        cally provided that the downloadable font file  for  Gara
  379.        mond-Outline indicates its dependence on    Garamond by means
  380.        of the Document Structuring Conventions,     for  example  by
  381.        beginning with the following lines
  382.  
  383.           %%!!PPSS--AAddoobbee--33..00 RReessoouurrccee--FFoonntt
  384.           %%%%DDooccuummeennttNNeeeeddeeddRReessoouurrcceess:: ffoonntt GGaarraammoonndd
  385.           %%%%EEnnddCCoommmmeennttss
  386.           %%%%IInncclluuddeeRReessoouurrccee:: ffoonntt GGaarraammoonndd
  387.  
  388.        In this case both Garamond and Garamond-Outline would need
  389.        to be listed in the ddoowwnnllooaadd file.   A  downloadable  font
  390.        should  not  include  its  own  name  in     a %%%%DDooccuummeennttSSuupp
  391.        pplliieeddRReessoouurrcceess comment.
  392.  
  393.        ggrrooppss will not interpret     %%%%DDooccuummeennttFFoonnttss  comments.   The
  394.        %%%%DDooccuummeennttNNeeeeddeeddRReessoouurrcceess,    %%%%DDooccuummeennttSSuupppplliieeddRReessoouurrcceess,
  395.        %%%%IInncclluuddeeRReessoouurrccee, %%%%BBeeggiinnRReessoouurrccee and %%%%EEnnddRReessoouurrccee  com
  396.        ments   (or   possibly    the   old  %%%%DDooccuummeennttNNeeeeddeeddFFoonnttss,
  397.        %%%%DDooccuummeennttSSuupppplliieeddFFoonnttss,     %%%%IInncclluuddeeFFoonntt,     %%%%BBeeggiinnFFoonntt  and
  398.        %%%%EEnnddFFoonntt comments) should be used.
  399.  
  400. EENNVVIIRROONNMMEENNTT
  401.        GGRROOPPSS__PPRROOLLOOGGUUEE
  402.           If this is set to    _f_o_o, then ggrrooppss    will use the file
  403.           _f_o_o (in the font path) instead of    the default  pro
  404.           logue  file pprroolloogguuee.  The option    --PP overrides this
  405.           environment variable.
  406.  
  407. FFIILLEESS
  408.        //uussrr//ffrreeeewwaarree//sshhaarree//ggrrooffff//11..1177..22//ffoonntt//ddeevvppss//DDEESSCC
  409.           Device description file.
  410.  
  411.        //uussrr//ffrreeeewwaarree//sshhaarree//ggrrooffff//11..1177..22//ffoonntt//ddeevvppss//_F
  412.           Font description file for    font _F.
  413.  
  414.        //uussrr//ffrreeeewwaarree//sshhaarree//ggrrooffff//11..1177..22//ffoonntt//ddeevvppss//ddoowwnnllooaadd
  415.           List of downloadable fonts.
  416.  
  417.        //uussrr//ffrreeeewwaarree//sshhaarree//ggrrooffff//11..1177..22//ffoonntt//ddeevvppss//tteexxtt..eenncc
  418.           Encoding used for    text fonts.
  419.  
  420.        //uussrr//ffrreeeewwaarree//sshhaarree//ggrrooffff//11..1177..22//ttmmaacc//ppss..ttmmaacc
  421.           Macros for use with ggrrooppss; automatically loaded  by
  422.           ttrrooffffrrcc
  423.  
  424.        //uussrr//ffrreeeewwaarree//sshhaarree//ggrrooffff//11..1177..22//ttmmaacc//ppssppiicc..ttmmaacc
  425.           Definition  of PPSSPPIICC macro, automatically    loaded by
  426.           ppss..ttmmaacc.
  427.  
  428.        //uussrr//ffrreeeewwaarree//sshhaarree//ggrrooffff//11..1177..22//ttmmaacc//ppssoolldd..ttmmaacc
  429.           Macros to    disable    use of characters not present  in
  430.           older  PostScript    printers (e.g. `eth' or    `thorn').
  431.  
  432.        //ttmmpp//ggrrooppss_X_X_X_X_X_X
  433.           Temporary    file.
  434.  
  435. SSEEEE AALLSSOO
  436.        aaffmmttooddiitt(1), ggrrooffff(1),  ttrrooffff(1),  ppssbbbb(1),  ggrrooffff__oouutt(5),
  437.        ggrrooffff__ffoonntt(5), ggrrooffff__cchhaarr(7)
  438.  
  439.  
  440.  
  441. Groff Version 1.17.2       27 June 2001             GROPS(1)
  442.